package com.system.api.setting.entity.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.yang.common.core.annotation.Chinese;
import org.yang.database.orm.entity.BaseDto;

import static com.system.common.constant.MessageConstant.*;

/**
 * 字典目录新增/修改对象
 *
 * @author: lslands
 * @version: 1.0
 * @create: 2024/5/19
 * @description:
 */
@Data
public class DictFormDto extends BaseDto {

    /**
     * 名称
     * @mock 状态
     * @required
     */
    @NotBlank(message = CATALOGUE_NAME_EMPTY)
    private String name;
    /**
     * 编码(唯一)
     * @mock enabled
     * @required
     */
    @NotBlank(message = CATALOGUE_CODE_EMPTY)
    @Chinese
    private String code;
    /**
     * 描述
     * @mock 描述
     */
    private String description;

}
